﻿using UnityEngine;
using System.Collections;
using Dict.DataModel;

namespace Room
{
    public class RCLODUnionChariot : RCLODBase
    {
        private string modelResName;
        public RCLODUnionChariot(RoomCharactor owner)
            : base(owner)
        {
            type = LODType.UnionChariot;
        }

        public void Init(string chariot)
        {
            this.modelResName = chariot;
        }

        public override void DoResume()
        {
            LoadModel(modelResName);
        }

        protected override void OnLoadModelComplete()
        {
            model.SetActive(true);
            CommonMethod.ChangeLayer(model.transform, LayerName.SceneActor);
        }
    }
}
